<?php

namespace Home\Controller;
use Think\Controller;

/**
*app活动类控制器
* @param type
* @autho cheng
*/
class ActivityViewController extends Controller {

    /**
     * Function output
     * @param $status
     * @param null $data
     *
     * Author: quyang
     * Date: 2017-2-4 14:22
     * Info: 活动页面展示
     */
    public function activityList(){

        $data = I('param.');

        if (empty($data)){
            $this->output(false);
        }

        $where['f_id'] = $data['fid'];

        $list = D('Activity')->where($where)->find();

        $list['f_create_time'] = date('Y-m-d',$list['f_create_time']);

        $this->assign('list',$list);

        $this->display('Activity/activityList');

    }

}
